package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-6 15:40:39 by Hibernate Tools 3.4.0.CR1

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbShopBase generated by hbm2java
 */
@Entity
@Table(name = "tb_shop_base", catalog = "shopc")
public class Shop extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private Integer id;
	private int userId;
	private String name;
	private String logo;
	private String headPic;
	private String goodsBgPic;
	private String qrcodePic;
	private String designRoad;
	private Date openTime;
	private Date closeTime;
	private Date deleteTime;
	private String brandStory;
	private String announcement;
	private Date createTime;
	private Date updateTime;
	private Boolean shutdowned = false;
	private Boolean deleted = false;

	public Shop() {
	}

	public Shop(Integer id, int userId, String name, String logo, String headPic, String goodsBgPic, String qrcodePic,
			String designRoad, Date openTime, Date closeTime, Date deleteTime, String brandStory, String announcement,
			Date createTime, Date updateTime, Boolean shutdowned, Boolean deleted) {
		this.id = id;
		this.userId = userId;
		this.name = name;
		this.logo = logo;
		this.headPic = headPic;
		this.goodsBgPic = goodsBgPic;
		this.qrcodePic = qrcodePic;
		this.designRoad = designRoad;
		this.openTime = openTime;
		this.closeTime = closeTime;
		this.deleteTime = deleteTime;
		this.brandStory = brandStory;
		this.announcement = announcement;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.shutdowned = shutdowned;
		this.deleted = deleted;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id", nullable = false)
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Column(name = "name", nullable = false, length = 48)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "logo", length = 56)
	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	@Column(name = "head_pic", length = 56)
	public String getHeadPic() {
		return this.headPic;
	}

	public void setHeadPic(String headPic) {
		this.headPic = headPic;
	}

	@Column(name = "goods_bg_pic", length = 56)
	public String getGoodsBgPic() {
		return this.goodsBgPic;
	}

	public void setGoodsBgPic(String goodsBgPic) {
		this.goodsBgPic = goodsBgPic;
	}

	@Column(name = "qrcode_pic", length = 56)
	public String getQrcodePic() {
		return this.qrcodePic;
	}

	public void setQrcodePic(String qrcodePic) {
		this.qrcodePic = qrcodePic;
	}

	@Column(name = "design_road", length = 56)
	public String getDesignRoad() {
		return this.designRoad;
	}

	public void setDesignRoad(String designRoad) {
		this.designRoad = designRoad;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "open_time", nullable = false, length = 19)
	public Date getOpenTime() {
		return this.openTime;
	}

	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "close_time", length = 19)
	public Date getCloseTime() {
		return this.closeTime;
	}

	public void setCloseTime(Date closeTime) {
		this.closeTime = closeTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "delete_time", length = 19)
	public Date getDeleteTime() {
		return this.deleteTime;
	}

	public void setDeleteTime(Date deleteTime) {
		this.deleteTime = deleteTime;
	}

	@Column(name = "brand_story", length = 160)
	public String getBrandStory() {
		return this.brandStory;
	}

	public void setBrandStory(String brandStory) {
		this.brandStory = brandStory;
	}

	@Column(name = "announcement", length = 160)
	public String getAnnouncement() {
		return this.announcement;
	}

	public void setAnnouncement(String announcement) {
		this.announcement = announcement;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "shutdowned", nullable = false)
	public Boolean getShutdowned() {
		return this.shutdowned;
	}

	public void setShutdowned(Boolean shutdowned) {
		this.shutdowned = shutdowned;
	}

	@Column(name = "deleted")
	public Boolean getDeleted() {
		return this.deleted;
	}

	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	@Override
	public String toString() {
		return "Shop{" +
				"id=" + id +
				", userId=" + userId +
				", name='" + name + '\'' +
				", logo='" + logo + '\'' +
				", headPic='" + headPic + '\'' +
				", goodsBgPic='" + goodsBgPic + '\'' +
				", qrcodePic='" + qrcodePic + '\'' +
				", designRoad='" + designRoad + '\'' +
				", openTime=" + openTime +
				", closeTime=" + closeTime +
				", deleteTime=" + deleteTime +
				", brandStory='" + brandStory + '\'' +
				", announcement='" + announcement + '\'' +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				", shutdowned=" + shutdowned +
				", deleted=" + deleted +
				'}';
	}
}
